#pragma once

#include "ScriptCompiler/AST/ExpressionNode.h"

class CScriptToken;

class CBracketNode : public CExpressionNode
{
public:
    CBracketNode(std::weak_ptr<CScriptFileContext> InFile)
        : CExpressionNode(InFile,EASTNodeType::Bracket)
    {
    }

    //left bracket
    std::shared_ptr<CScriptToken> LeftBracket;


    //content
    std::shared_ptr<CExpressionNode> Expression;

    virtual void DebugPrint(int32_t InDepth) override;

    virtual std::shared_ptr<CScriptToken> GetFirstToken() override { return LeftBracket; }

};